//1.引入mysql模块
const mysql=require('mysql') 

//2.创建连接池对象
const pool=mysql.createPool({
  host:'127.0.0.1',
  port:3306,
  user:'root',  
  password:'',
  database:'boss',
  connectionLimit:15,   //设置连接的数量   默认是15  个
  multipleStatements:true          //kaiq开启同时执行多个SQL命令
})


//3.暴露连接池对象 
module.exports=pool